package com.xidian.zhiancloud.controller.luling.systemconfiguration;
import com.xidian.zhiancloud.dto.ResultDTO;
import com.xidian.zhiancloud.enums.GeneralResponseEnums;
import com.xidian.zhiancloud.service.luling.systemconfiguration.LevelStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 ** 管控层级表接口
 * @Author:luling
 * @Date:2021/1/7   15:24
 */
@RestController
@RequestMapping("/LevelStatus")
public class LevelStatusController {
    @Autowired
    private LevelStatusService   levelStatusService;
    /**
     * 修改管控层级信息
     * @param  levelStatus  修改管控层级对象
     * @return ResultDTO对象
     */
    @PostMapping("/update")
    public ResultDTO<Boolean> update(@RequestBody LevelStatus levelStatus) {
        levelStatusService.update(levelStatus);
        return ResultDTO.successOf(GeneralResponseEnums.SUCCESS);
    }
}
